package csse3004.GD.PM;

import csse3004.GD.PC.newMCQ;
import org.springframework.validation.Validator;
import org.springframework.validation.Errors;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/**
 *
 * @author s4201567 Tony Yu
 */
public class newMCQValidator implements Validator {
    
    protected final Log logger = LogFactory.getLog(getClass());
    
    public boolean supports(Class clazz) {
        return newMCQ.class.equals(clazz);
    }
    
    public void validate(Object obj, Errors errors) {
        newMCQ mcq = (newMCQ)obj;
        logger.info("Validator");
    }
}
